<table class="table table-bordered table-hover" id="user-list">
    <thead>
        <tr>
            <th>头像</th>
            <th>用户名</th>
            <th>比赛结果</th>
        </tr>
    </thead>
    <tbody> 
        @foreach($games as $game)
            <tr id="{{$game->id}}">
                <td>@if($game->user) <img src="{{$game->user->headimg}}" style="width:18px"> @endif</td>
                <td>@if($game->user) @if($game->user->nickname) {{$game->user->nickname}} @else {{base64_decode($game->user->name)}} @endif @endif</td>
                <td>@if($game->result == 1) 主队胜 @elseif($game->result == 2) 客队胜 @elseif($game->result == 3) 平局 @endif</td>
            </tr>
        @endforeach
    </tbody>
</table>